package com.zkyc.framework.website.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zkyc.framework.common.pojo.ColumnRefComponent;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ColumnRefComponentMapper extends BaseMapper<ColumnRefComponent> {
    @Insert("<script>" +
            "INSERT INTO web_column_ref_component (column_id, component_id) VALUES" +
            "<foreach collection='list' item='item' index='index' separator=','>" +
            "(#{item.columnId}, #{item.componentId})" +
            "</foreach>" +
            "</script>")
    int insertBatch(List<ColumnRefComponent> columnRefComponentList);
}
